<div class="panes_vertical">
	<div class="box">	
		<form method="post" action="<{$APPLICATION_URL}>/Admin/Users/edit" name="frmForm" enctype="multipart/form-data">
			<fieldset>
				<legend>Edit User Information</legend>																
				<p>
					<label>Username:</label>
					<input type='text' id='username' name='username' value='<{$username}>' class="textfield">					
				</p>
				<p>
					<label>Password:</label>
					<input type='password' id='password' name='password' value='' class="textfield">					
				</p>
				<p>
					<label>Retype Password:</label>
					<input type='password' id='retypePassword' name='retypePassword' value='' class="textfield">					
				</p>
				<p>
					<label>First Name:</label>
					<input type='text' id='firstName' name='firstName' value='<{$firstName}>' class="textfield" size="10">					
				</p>
				<p>
					<label>Last Name:</label>
					<input type='text' id='lastName' name='lastName' value='<{$lastName}>' class="textfield" size="10">					
				</p>
				<p>
					<label>Email:</label>
					<input type='text' id='email' name='email' value='<{$email}>' class="textfield">					
				</p>
				<p>
					<label>Date Of Birth:</label>
					<input type='text' id='birthday' name='birthday' value='<{$birthday}>' class="textfield" size="10">					
				</p>				
				<p>
					<label>House Name/Number:</label>
					<input type='text' id='house' name='house' value='<{$house}>' class="textfield" size="50">					
				</p>
				<p>
					<label>Address:</label>
					<input type='text' id='address' name='address' value='<{$address}>' class="textfield" size="50">					
				</p>
				<p>
					<label>Town/City:</label>
					<input type='text' id='city' name='city' value='<{$city}>' class="textfield">					
				</p>
				<p>
					<label>Postcode/Zipcode:</label>
					<input type='text' id='zipCode' name='zipCode' value='<{$zipCode}>' class="textfield">					
				</p>
				<p>
					<label>Phone:</label>
					<input type='text' id='telephone' name='telephone' value='<{$telephone}>' class="textfield">					
				</p>
				<p>
					<label>Country:</label>
					<select name="countryId" id="countryId" textfieldform>
					<option value="">- - - - -</option>
					<{html_options options = $listCountry selected=$countryId}>
				</select>					
				</p>
				<p>
					<label>User Type:</label>
					<select name="userType" id="userType">
						<option value=''>-- Select one --</option>
						<{html_options options = $userTypeList selected=$userType}>
					</select>
				</p>					
				<p>
					<label>Status:</label>
					<select name="status" id="select">
						<option value=''>-- Select one --</option>
						<{html_options options = $statusList selected=$status}>
					</select>
				</p>
				<p>
					<input type="button" name="save" class="button" id="save" value=" Submit " onclick="formSubmit();" />
					<input type="reset" name="reset" class="button" id="reset" value=" Reset " />										
					<input type="hidden" id="id" name="id" value="<{$id}>" />
					<input type="hidden" id="actionForm" name="actionForm" value=""/>
					<input type="hidden" id="actionKey" name="actionKey" value="<{$actionKey}>" />
				</p>
			</fieldset>
		</form>
	</div>
</div>

<script type="text/javascript">
    function formSubmit()
    {
    	var theform = document.frmForm;
    	
    	// Check Name
    	var name = theform.name.value;
    	if (name == ''){
			alert('Name is invalid');
			theform.name.focus();
			return false;
    	} 	

    	// Check status
    	var status = theform.status.value;
    	if (status == ''){
			alert('Status is invalid');
			theform.status.focus();
			return false;
    	}

    	theform.actionForm.value = 'submit';
    	theform.submit();
    	return true;
    }
</script>